package org.jimmy.tang.callback;

/**
 * @author jimmy
 * 
 */
public class A {
    private final Callback callback;

    public A(Callback callback) {
        this.callback = callback;
    }

    public void doIt() {
        callback.begin();
        System.out.println("do something ...");
        callback.end();
    }
}
